package link.anyauto.study;

import android.databinding.ObservableArrayList;
import android.databinding.ObservableArrayMap;

import java.util.ArrayList;
import java.util.List;

import link.anyauto.study.BR;
import me.tatarka.bindingcollectionadapter.ItemView;

/**
 * Created by LYQ on 2016/7/19.
 */
public class Data {
    public ObservableArrayList<Functions> functions = new ObservableArrayList<>();
    public int getTotalFunctions() {
        int count = 0;
        for(Functions function : functions) {
            count += function.funs.size();
        }
        return count;
    }

    public final ItemView itemView = ItemView.of(BR.name, R.layout.spinner);
}
